package personal.wang.proxy;

public class HebeiAgent implements Salable{
    private Salable factory;
    public HebeiAgent(Salable factory){
        this.factory = factory ;
    }
    @Override
    public void sale() {
        System.out.println("售前");
        factory.sale();
        System.out.println("售后");
    }

    public static void main(String[] args) {
        HebeiAgent hebeiAgent = new HebeiAgent(new Factory());
        hebeiAgent.sale();
    }
}
